package com.mt.roll.wms.vo;

import com.mt.roll.core.vo.CommonVo;
import com.mt.roll.core.vo.PageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Author weihongyang
 * @Date 2020/12/30 16:02
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@ApiModel(value = "物料属性视图对象", description = "用于查询物料属性信息")
public class MaterialAttrVo extends CommonVo implements PageVo.ConvertVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增
     */
    @ApiModelProperty(value = "主键", required = true, example = "1")
    @NotNull(message = "ID不能为空")
    private Long id;

    /**
     * 属性值
     */
    @ApiModelProperty(value = "属性值", required = true, example = "属性值")
    private String attrValue;

    /**
     * 属性名
     */
    @ApiModelProperty(value = "属性名", required = true, example = "属性名")
    private String attrName;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", example = "remark")
    private String remark;

}
